Optimal. Leaf size=64 \[ \frac{\sin (e+f x) \cos ^3(e+f x)}{4 a^2 c^2 f}+\frac{3 \sin (e+f x) \cos (e+f x)}{8 a^2 c^2 f}+\frac{3 x}{8 a^2 c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0814768, antiderivative size = 64, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.097, Rules used = {3522, 2635, 8} \[ \frac{\sin (e+f x) \cos ^3(e+f x)}{4 a^2 c^2 f}+\frac{3 \sin (e+f x) \cos (e+f x)}{8 a^2 c^2 f}+\frac{3 x}{8 a^2 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3522
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{1}{(a+i a \tan (e+f x))^2 (c-i c \tan (e+f x))^2} \, dx &=\frac{\int \cos ^4(e+f x) \, dx}{a^2 c^2}\\ &=\frac{\cos ^3(e+f x) \sin (e+f x)}{4 a^2 c^2 f}+\frac{3 \int \cos ^2(e+f x) \, dx}{4 a^2 c^2}\\ &=\frac{3 \cos (e+f x) \sin (e+f x)}{8 a^2 c^2 f}+\frac{\cos ^3(e+f x) \sin (e+f x)}{4 a^2 c^2 f}+\frac{3 \int 1 \, dx}{8 a^2 c^2}\\ &=\frac{3 x}{8 a^2 c^2}+\frac{3 \cos (e+f x) \sin (e+f x)}{8 a^2 c^2 f}+\frac{\cos ^3(e+f x) \sin (e+f x)}{4 a^2 c^2 f}\\ \end{align*}
Mathematica [A] time = 0.0517875, size = 39, normalized size = 0.61 \[ \frac{12 (e+f x)+8 \sin (2 (e+f x))+\sin (4 (e+f x))}{32 a^2 c^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.036, size = 136, normalized size = 2.1 \begin{align*}{\frac{-{\frac{3\,i}{16}}\ln \left ( \tan \left ( fx+e \right ) -i \right ) }{f{a}^{2}{c}^{2}}}-{\frac{{\frac{i}{16}}}{f{a}^{2}{c}^{2} \left ( \tan \left ( fx+e \right ) -i \right ) ^{2}}}+{\frac{3}{16\,f{a}^{2}{c}^{2} \left ( \tan \left ( fx+e \right ) -i \right ) }}+{\frac{{\frac{i}{16}}}{f{a}^{2}{c}^{2} \left ( \tan \left ( fx+e \right ) +i \right ) ^{2}}}+{\frac{{\frac{3\,i}{16}}\ln \left ( \tan \left ( fx+e \right ) +i \right ) }{f{a}^{2}{c}^{2}}}+{\frac{3}{16\,f{a}^{2}{c}^{2} \left ( \tan \left ( fx+e \right ) +i \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 1.32098, size = 200, normalized size = 3.12 \begin{align*} \frac{{\left (24 \, f x e^{\left (4 i \, f x + 4 i \, e\right )} - i \, e^{\left (8 i \, f x + 8 i \, e\right )} - 8 i \, e^{\left (6 i \, f x + 6 i \, e\right )} + 8 i \, e^{\left (2 i \, f x + 2 i \, e\right )} + i\right )} e^{\left (-4 i \, f x - 4 i \, e\right )}}{64 \, a^{2} c^{2} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.18391, size = 223, normalized size = 3.48 \begin{align*} \begin{cases} \frac{\left (- 4096 i a^{6} c^{6} f^{3} e^{10 i e} e^{4 i f x} - 32768 i a^{6} c^{6} f^{3} e^{8 i e} e^{2 i f x} + 32768 i a^{6} c^{6} f^{3} e^{4 i e} e^{- 2 i f x} + 4096 i a^{6} c^{6} f^{3} e^{2 i e} e^{- 4 i f x}\right ) e^{- 6 i e}}{262144 a^{8} c^{8} f^{4}} & \text{for}\: 262144 a^{8} c^{8} f^{4} e^{6 i e} \neq 0 \\x \left (\frac{\left (e^{8 i e} + 4 e^{6 i e} + 6 e^{4 i e} + 4 e^{2 i e} + 1\right ) e^{- 4 i e}}{16 a^{2} c^{2}} - \frac{3}{8 a^{2} c^{2}}\right ) & \text{otherwise} \end{cases} + \frac{3 x}{8 a^{2} c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.3206, size = 82, normalized size = 1.28 \begin{align*} \frac{\frac{3 \,{\left (f x + e\right )}}{a^{2} c^{2}} + \frac{3 \, \tan \left (f x + e\right )^{3} + 5 \, \tan \left (f x + e\right )}{{\left (\tan \left (f x + e\right )^{2} + 1\right )}^{2} a^{2} c^{2}}}{8 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]